//
//  StrategyBeforeModel.m
//  礼物说
//
//  Created by dllo on 16/4/26.
//  Copyright © 2016年 sunzhichao. All rights reserved.
//

#import "StrategyBeforeModel.h"

@implementation StrategyBeforeModel

- (void)dealloc {
    [_dataArr release];
    [_name release];
    [super dealloc];
}

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"channels"]) {
        
        self.dataArr = [NSMutableArray array];
        
        for (NSDictionary * dic in value) {
            StrategyModel * model = [[StrategyModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.dataArr addObject:model];
            [model release];
         }
    }
}

@end
